<?php
/**
 * Created by PhpStorm.
 * User: ybjaa
 * Date: 2017/7/11
 * Time: 14:28
 */

namespace App\Extend;


class Test
{

    private static $test=null;

    public static function GetInstance()
    {
        if(!self::$test){
            self::$test=new Test();
        }

        return self::$test;
    }


    private $index=0;

    public function getIndex()
    {
        return ++$this->index;
    }



}